<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
 <head>
  <title>jCustomSearch Test</title>
  <style type="text/css">
   .gs-result{
    margin-bottom : 20px;
   }
  </style>
  <script type="text/javascript">//<![CDATA[
   window.onload = function(){
    var options = {
     key : 'AIzaSyBkyLT-u8V4JDhsX43OMIh90-Sr1WT8g-s',
     cx : '017576662512468239146:omuauf_lfve',
     usePlainTextSnippet : 1
    };
    var searchControl = window.searchControl = new window.jeremy.google.search.SearchControl;
    searchControl.addSearcher(window.csapi = new window.jeremy.google.search.CustomSearch(options));
    searchControl.addSearcher(window.news = new window.jeremy.google.search.NewsSearch);
    searchControl.addSearcher(window.img = new window.jeremy.google.search.ImageSearch);
    searchControl.addSearcher(window.patent = new window.jeremy.google.search.PatentSearch);
    searchControl.addSearcher(window.video = new window.jeremy.google.search.VideoSearch);
    searchControl.addSearcher(window.blog = new window.jeremy.google.search.BlogSearch);
    searchControl.draw('control');
    searchControl.execute('hello, world');
   };
   function callback(el){
    var el = document.getElementById(el);
    while(el.firstChild){
     el.removeChild(el.firstChild);
    }
    for(var i=0;i<this.results.length;i++){
     el.appendChild(this.results[i].html);
    }
   }
  // ]]></script>
  <script type="text/javascript" src="jCustomSearch.min.js"></script>
 </head>
 <body>
  <div id="control"></div>
 </body>
</html>